import service from '@/utils/request'

// @Tags ProductSpecNote
// @Summary 创建产品规格-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecNote true "创建产品规格-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecNote/createProductSpecNote [post]
export const createProductSpecNote = (data) => {
  return service({
    url: '/productSpecNote/createProductSpecNote',
    method: 'post',
    data
  })
}

// @Tags ProductSpecNote
// @Summary 删除产品规格-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecNote true "删除产品规格-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecNote/deleteProductSpecNote [delete]
export const deleteProductSpecNote = (params) => {
  return service({
    url: '/productSpecNote/deleteProductSpecNote',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecNote
// @Summary 批量删除产品规格-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecNote/deleteProductSpecNote [delete]
export const deleteProductSpecNoteByIds = (params) => {
  return service({
    url: '/productSpecNote/deleteProductSpecNoteByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecNote
// @Summary 更新产品规格-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecNote true "更新产品规格-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecNote/updateProductSpecNote [put]
export const updateProductSpecNote = (data) => {
  return service({
    url: '/productSpecNote/updateProductSpecNote',
    method: 'put',
    data
  })
}

// @Tags ProductSpecNote
// @Summary 用id查询产品规格-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecNote true "用id查询产品规格-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecNote/findProductSpecNote [get]
export const findProductSpecNote = (params) => {
  return service({
    url: '/productSpecNote/findProductSpecNote',
    method: 'get',
    params
  })
}

// @Tags ProductSpecNote
// @Summary 分页获取产品规格-历史修改备注列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-历史修改备注列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecNote/getProductSpecNoteList [get]
export const getProductSpecNoteList = (params) => {
  return service({
    url: '/productSpecNote/getProductSpecNoteList',
    method: 'get',
    params
  })
}
